﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<TestingIIS.Models.CLIENT>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <form id="form1" runat="server" method="post" action="Home/Search">
    <h2><%: ViewData["Message"] %></h2>
    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>
                EMAIL
            </th>
            <th>
                PWD
            </th>
            <th>
                COUNTRY
            </th>
            <th>
                DESIGNATION
            </th>
            <th>
                FIRSTNAME
            </th>
            <th>
                LASTNAME
            </th>
            <th>
                PASSPORTNO
            </th>
            <th>
                GENDER
            </th>
            <th>
                ADDRESS
            </th>
            <th>
                CONTACT
            </th>
            <th>
                ACCOUNTSTATUS
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.EMAIL }) %> |
                <%: Html.ActionLink("Details", "Details", new { id=item.EMAIL })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.EMAIL })%>

            </td>
            <td>
                <%: item.EMAIL %>
            </td>
            <td>
                <%: item.PWD %>
            </td>
            <td>
                <%: item.COUNTRY %>
            </td>
            <td>
                <%: item.DESIGNATION %>
            </td>
            <td>
                <%: item.FIRSTNAME %>
            </td>
            <td>
                <%: item.LASTNAME %>
            </td>
            <td>
                <%: item.PASSPORTNO %>
            </td>
            <td>
                <%: item.GENDER %>
            </td>
            <td>
                <%: item.ADDRESS %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.CONTACT) %>
            </td>
            <td>
                <%: item.ACCOUNTSTATUS %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
        <%: Html.ActionLink("View the guy", "DetailView")%>
        <input type="text" name="email" id="email" />
        <input type="submit" name="submitButton" value="Search" />
        </p>

    </form>

</asp:Content>

